import type { App } from "vue";
import Icon from "./Icon/Icon.vue";
import Loading from "./Loading/index.vue";
import ContextMenu from "./ContextMenu/index.vue";
import ContextMenuItem from "./ContextMenuItem/index.vue";

/**
 * @description 批量注册全局组件
 * @param app vue 实例
 */
export function batchUseComponents(app: App) {
  app.component("Icon", Icon);
  app.component("Loading", Loading);
  app.component("context-menu", ContextMenu);
  app.component("context-menu-item", ContextMenuItem);
}
